﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace MapLibrary
{
    public class Layer
    {
        private List<MapNode> mLayerNodes;

        public Layer()
        {
            mLayerNodes = new List<MapNode>();
        }

        public void Draw(SpriteBatch batch, WorldViewport Viewport)
        {
            foreach (MapNode node in mLayerNodes)
            {
                node.Draw(batch, Viewport);
            }
        }

        public void AddNode(MapNode Node)
        {
            mLayerNodes.Add(Node);
        }

        public List<MapNode> MapNodes
        {
            get { return mLayerNodes; }
        }
    }
}
